package ua.kharkov.khpi.tarasenko.bach.core.item;

import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;

/**
 * Stores item's categories.
 * 
 * @author oleksandr
 *
 */
public class CategoryContainer implements Serializable {
	private static final long serialVersionUID = 180753347203398702L;

	private static Map<Integer, String> categoryMap = new TreeMap<Integer, String>();
	
	public static void addCategory(int id, String categoryName) {
		getCategoryMap().put(new Integer(id), categoryName);
	}

	public static String getCategoryName(int id) {
		String categoryName = categoryMap.get(new Integer(id));
		return categoryName;
	}

	public static Map<Integer, String> getCategoryMap() {
		return categoryMap;
	}
}
